<template>
  <div>
    <van-sticky>
        <div class="stkbox">
          <van-dropdown-menu active-color="#f36273">
            <van-dropdown-item v-model="value1" :options="option1" />
            <van-dropdown-item v-model="value2" :options="option2" />
            <van-dropdown-item v-model="value2" :options="option3" />
            <van-dropdown-item v-model="value2" title="筛选" @open="showPopup"/>
          </van-dropdown-menu>
        </div>
      </van-sticky>
      <van-popup v-model="show" class="chouting" position="right" :style="{ height: '100%',width:'80%'}">内容</van-popup>
  </div>
</template>

<script>
export default {
  data () {
    return {
      value: '',
      gethouse: [],
      value1: 0,
      value2: 'a',
      option1: [
        { text: '区域', value: 0 },
        { text: '新款商品', value: 1 },
        { text: '活动商品', value: 2 }
      ],
      option2: [
        { text: '方式', value: 'a' },
        { text: '好评排序', value: 'b' },
        { text: '销量排序', value: 'c' }
      ],
      option3: [
        { text: '租金', value: 'a' },
        { text: '好评排序', value: 'b' },
        { text: '销量排序', value: 'c' }
      ],
      option4: [
        // { text: '筛选', value: 'a' }
        // { text: '好评排序', value: 'b' },
        // { text: '销量排序', value: 'c' }
      ],
      show: false
    }
  },
  methods: {
    showPopup () {
      console.log('点击')
      this.show = true
    }
  }
}
</script>

<style scoped lang='less'>
</style>
